/**
 * sysRolePermissionService
 * 项目名称:分秒金融
 *
 * @author lunli
 *
 * 功能描述:角色资源管理
 * 
 * 历史版本:2017-03-28 v1.0.0 lunli  创建:
 * 
 */
package com.fmjr.sys.sysRolePermission.service;

import com.fmjr.common.base.exception.BusinessException;
import com.fmjr.common.base.util.Pager;
import com.fmjr.sys.sysRolePermission.bean.SysRolePermission;

import java.util.List;


public interface ISysRolePermissionService{

	/**
	 * 根据条件查询角色资源记录
	 * @author lunli
	 * @param  Pager<SysRolePermission> pager
	 * @return SysRolePermissionList
	 * @throws BusinessException
	 */
	public void selectSysRolePermissionList(Pager<SysRolePermission> pager) throws BusinessException;
	
	/**
	 * 根据ID查询角色资源记录
	 * @author lunli
	 * @param Long id
	 * @return SysRolePermission
	 * @throws BusinessException
	 */
	public SysRolePermission selectSysRolePermissionById(Long id) throws BusinessException;

	/**
	 *  删除角色资源记录
	 * @author lunli	 
	 * @param id
	 * @throws BusinessException
	 */
	public int deleteSysRolePermissionById(Long id) throws BusinessException;
	
	/**
	 * 修改角色资源记录
	 * @author lunli
	 * @param sysRolePermission
	 * @throws BusinessException
	 */
	public int updateSysRolePermission(SysRolePermission sysRolePermission) throws BusinessException;

	/**
	 * 新增角色资源记录
	 * @author lunli
	 * @param sysRolePermission
	 * @return
	 * @throws BusinessException
	 */
	public int createSysRolePermission(SysRolePermission sysRolePermission) throws BusinessException;
	
	
	
	/**
	 * 根据 角色ID 获取 已拥有的角色资源
	 * @author lunli
	 * @param sysRolePermission
	 * @return
	 * @throws BusinessException
	 */
	public List<SysRolePermission> searchRolePermissionByRoleId(Long roleId) throws BusinessException;

}
